<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap CSS -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/webjars/bootstrap/5.3.0/css/bootstrap.css">
    <title>登录页面</title>
</head>
<body>
<div class="container d-flex justify-content-center align-items-center vh-100">
    <div class="card w-50">
        <div class="card-header bg-primary text-white text-center">
            <h2>用户登录</h2>
        </div>
        <div class="card-body">
            <%-- 显示错误信息 --%>
            <% if (request.getAttribute("err") != null) { %>
            <div class="alert alert-danger" role="alert">
                <%= request.getAttribute("err") %>
            </div>
            <% } %>
            <form action="login03" method="post">
                <div class="mb-3">
                    <label for="account" class="form-label">用户名</label>
                    <input type="text" class="form-control" id="account" name="account" required>
                </div>
                <div class="mb-3">
                    <label for="pass" class="form-label">密码</label>
                    <input type="password" class="form-control" id="pass" name="pass" required>
                </div>
                <button type="submit" class="btn btn-primary w-100">登录</button>
            </form>
        </div>
    </div>
</div>
<!-- 引入 Bootstrap JS -->
<script src="${pageContext.request.contextPath}/webjars/bootstrap/5.3.0/js/bootstrap.bundle.js"></script>
</body>
</html>